Improve url matching in ffap.el.
authorChong Yidong <cyd@gnu.org>
Wed, 5 Dec 2012 07:29:02 +0000 (15:29 +0800)
committerChong Yidong <cyd@gnu.org>
Wed, 5 Dec 2012 07:29:02 +0000 (15:29 +0800)
commit4cf1e8a539c0425eac0609d96af0bf7bb57f210c
tree5c49379f80bc3bdc32bac3868b043fc6890d3dda
parent9d01a72fc7593df690ab67da0ea86b4d7ccfd790
Improve url matching in ffap.el.

* ffap.el (ffap-url-regexp): Don't require matching at front of string.
(ffap-url-p): If only a substring matches, return that.
(ffap-url-at-point): Use the return value of ffap-url-p.
(ffap-read-file-or-url, ffap-read-file-or-url-internal)
(find-file-at-point, dired-at-point, dired-at-point-prompter)
(ffap-guess-file-name-at-point): Likewise.
(ffap-replace-file-component): Fix typo.
lisp/ChangeLog
lisp/ffap.el